<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body class="c1">
    <div>box1</div>
    <div>box2</div>
    <div>box3</div>
    <div>box4</div>
    <script>
      const r1 = document.querySelectorAll("div");
      const r2 = document.getElementsByTagName("div");
      console.log(r1);
      console.log(r2);
    </script>
  </body>
</html>
